package com.zxf.field_method07;

public class Book {
    private String bookName;
    private String author;
    private String publisher;
    private double price;


    public void setBookName(String bookNameParam) {
        System.out.println("数据传过来了：" + bookNameParam);

        bookName = bookNameParam;
    }

    public String getBookName() {
        return bookName;
    }

    public void setAuthor(String authorParam) {
        author = authorParam;
    }

    public String getAuthor() {
        return author;
    }

    public void setPublisher(String publisherParam){
        publisher =publisherParam;
    }

    public void setPrice(double priceparam){
        price =priceparam;
    }
    public double getPrice(){
        return price;
    }
    public String getBookInfo(){
        return "书名："+bookName+"\n作者："+author+
                "出版社名："+publisher+"\n价格："+price;
    }
}